package com.neiquan.secondhand.po;

import com.neiquan.backstage.core.PO;
import com.neiquan.backstage.core.bsc.CRUD;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.security.KeyStore;
import java.util.Date;

/**
 * 文件表中间表
 *  chenjunnan 
 *  2016/7/21.
 */
@Entity
@org.hibernate.annotations.Entity(selectBeforeUpdate = true, dynamicUpdate = true)
@Table(name = "sh_file_other")
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
@CRUD
public class FileOtherResource extends PO  {
	 @Override
	    public Serializable getId() {
	        return null;
	    }
    @Id
    @GeneratedValue(generator = "generator")
    @GenericGenerator(name = "generator", strategy = "uuid.hex")
    
    @Column(name = "id", unique = true, nullable = false)
    private String id;//主键
    
    @Column(name = "file_id", length=200)
    private String fileId;//文件ID    对应文件表中id
    
    @Column(name = "other_id", length=500)
    private String otherId;//其他表ID，eg：商品表ID
    
    @Column(name = "create_time")
    private  Long createTime;//创建时间

	public String getFileId() {
		return fileId;
	}

	public void setFileId(String fileId) {
		this.fileId = fileId;
	}

	public String getOtherId() {
		return otherId;
	}

	public void setOtherId(String otherId) {
		this.otherId = otherId;
	}

	public Long getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Long createTime) {
		this.createTime = createTime;
	}

	public void setId(String id) {
		this.id = id;
	}

   

}
